home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(load){
- function hit(whichShot)
- {
- removeMovieClip(whichShot);
- _root.actions.explosion(this);
- if(whichShot == 0 || _root.newShot1000 || _root.newShot2000 || _root.newShot3000 || _root.newShot4000)
- {
- _root.actions.score += scoreAmount;
- }
- removeMovieClip(this);
- }
- if(_name != "glob")
- {
- scoreAmount = 25;
- _root.actions.totalCells = _root.actions.totalCells + 1;
- angle = Math.random() * 6.283185307179586;
- speed = random(5) + 1;
- xSpeed = Math.sin(angle) * speed;
- ySpeed = Math.cos(angle) * speed;
- rotateSpeed = random(8) - 4;
- }
- }
-